
set cflags=-IC:/msys64/mingw32/include/uWebSockets -IC:/msys64/mingw32/include/librsvg-2.0 -IC:/msys64/mingw32/include/gdk-pixbuf-2.0 -IC:/msys64/mingw32/include/cairo -IC:/msys64/mingw32/include/freetype2 -IC:/msys64/mingw32/include -IC:/msys64/mingw32/include/glib-2.0 -IC:/msys64/mingw32/lib/glib-2.0/include -IC:/msys64/mingw32/include/pixman-1 -IC:/msys64/mingw32/include/harfbuzz -IC:/msys64/mingw32/include/webp -DLIBDEFLATE_DLL -IC:/msys64/mingw32/include/libpng16 -ULIBDEFLATE_DLL
@REM -DDEBUG
@REM -DUWS_NO_ZLIB
@REM -DDEBUG  svg.cpp
g++  -std=c++20 -DUWS_NO_ZLIB -static -L. win.c -mwindows  looper.cpp svg.cpp base64.cpp http.cpp   websocket.cpp -shared -s -fPIC -O3  -o dhs_core.dll -DDLL_BUILD  %cflags% -DCAIRO_WIN32_STATIC_BUILD -DGLIB_STATIC_COMPILATION -DGOBJECT_STATIC_COMPILATION ^
-LC:/msys64/mingw32/lib -lrsvg-2 -lm -lgdk_pixbuf-2.0 -lm -lintl -lgdiplus -lole32 -lcairo -lm -lgdi32 -lmsimg32 -ldwrite -ld2d1 -lwindowscodecs -lbz2 -lintl -lshlwapi -ldnsapi -liphlpapi -lws2_32 -lgobject-2.0 -lintl -lws2_32 -lole32 -lwinmm -lshlwapi -luuid -lm -LC:/msys64/mingw32/lib -lbrotlicommon -lgraphite2 -lpixman-1 -lm -pthread -lharfbuzz -lm -lusp10 -lgdi32 -lrpcrt4 -lbrotlidec -lfontconfig -LC:/msys64/mingw32/lib -liconv -lfreetype -lbz2 -lexpat -lm -lsharpyuv -lgio-2.0 -lshlwapi -ldnsapi -liphlpapi -lws2_32 -lglib-2.0 -lintl -lws2_32 -lole32 -lwinmm -lshlwapi -luuid -lm -ltiff -lLerc -ljbig -lz -lwebp -lzstd -llzma -ldeflate -ljpeg -lpng16 -LC:/msys64/mingw32/lib/../lib -lffi -lz -lgmodule-2.0 -lintl -lpcre2-8 ^
-LC:/msys64/mingw32/lib -lcairo-gobject -lm -lgdi32 -lmsimg32 -ldwrite -ld2d1 -lwindowscodecs -lcairo -lm -lgdi32 -lmsimg32 -ldwrite -ld2d1 -lwindowscodecs -lgobject-2.0 -lws2_32 -lole32 -lwinmm -lshlwapi -luuid -lm -lbz2 -LC:/msys64/mingw32/lib/../lib -lffi -lpcre2-8 -lbrotlicommon -lglib-2.0 -lintl -lws2_32 -lole32 -lwinmm -lshlwapi -luuid -lm -lgraphite2 -lpixman-1 -lm -pthread -lfreetype -lbz2 -lharfbuzz -lm -lusp10 -lgdi32 -lrpcrt4 -lbrotlidec -lfontconfig -LC:/msys64/mingw32/lib -liconv -lexpat -lm -lpng16 -lz ^
-LC:/msys64/mingw32/lib -lpangowin32-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lintl -lharfbuzz ^
-LC:/msys64/mingw32/lib -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lintl -lharfbuzz -lfontconfig -lfreetype ^
-LC:/msys64/mingw32/lib -lpangocairo-1.0 -lm -lgdi32 -lpango-1.0 -lm -LC:/msys64/mingw32/lib -liconv -lbz2 -lintl -lws2_32 -lole32 -lwinmm -lshlwapi -luuid -lm -lintl -lm -lusp10 -lgdi32 -lrpcrt4 -lm -lgdi32 -lmsimg32 -ldwrite -ld2d1 -lwindowscodecs -LC:/msys64/mingw32/lib -lbrotlicommon -lpixman-1 -lm -pthread -lpng16 -lbrotlidec -lexpat -lm -lgraphite2 -ldatrie -lgmodule-2.0 -lz -LC:/msys64/mingw32/lib/../lib -lffi -lpcre2-8 -lpangowin32-1.0 -lm -lgdi32 -ldwrite -lfontconfig -LC:/msys64/mingw32/lib -liconv -lfreetype -lbz2 -lpangoft2-1.0 -lm -lglib-2.0 -lintl -lws2_32 -lole32 -lwinmm -lshlwapi -luuid -lm -lgobject-2.0 -lintl -lgio-2.0 -lintl -lshlwapi -ldnsapi -liphlpapi -lws2_32 -lfribidi -lthai -lharfbuzz -lm -lusp10 -lgdi32 -lrpcrt4 -lcairo -lm -lgdi32 -lmsimg32 -ldwrite -ld2d1 -lwindowscodecs -lharfbuzz-gobject ^
-LC:/msys64/mingw32/lib -lpango-1.0 -lm -lgobject-2.0 -lbz2 -lm -lusp10 -lgdi32 -lrpcrt4 -lintl -lws2_32 -lole32 -lwinmm -lshlwapi -luuid -lm -LC:/msys64/mingw32/lib -lbrotlicommon -lgraphite2 -LC:/msys64/mingw32/lib/../lib -lffi -lcairo -lm -lgdi32 -lmsimg32 -ldwrite -ld2d1 -lwindowscodecs -lpixman-1 -lm -pthread -lfreetype -lbz2 -lpng16 -lharfbuzz -lm -lusp10 -lgdi32 -lrpcrt4 -lbrotlidec -lfontconfig -LC:/msys64/mingw32/lib -liconv -lexpat -lm -lthai -ldatrie -lfribidi -lgio-2.0 -lintl -lshlwapi -ldnsapi -liphlpapi -lws2_32 -lgmodule-2.0 -lz -lglib-2.0 -lintl -lws2_32 -lole32 -lwinmm -lshlwapi -luuid -lm -lpcre2-8 ^
-LC:/msys64/mingw32/lib -lxml2 -lz -llzma -liconv -lm -lws2_32 ^
 -luSockets -luv -lpsapi -luser32 -ladvapi32 -liphlpapi -luserenv -lws2_32 -ldbghelp -lole32 -luuid -lshell32 ^
-IC:/msys64/mingw32/include -DCURL_STATICLIB -LC:/msys64/mingw32/lib -lcurl -lnghttp2 -lssh2 -lssh2 -lpsl -lbcrypt -ladvapi32 -lcrypt32 -lbcrypt -lssl -lcrypto  -lgdi32 -lwldap32 -lzstd -lzstd -lbrotlidec -lbrotlidec -lz -lws2_32 -LC:/msys64/mingw32/lib -lbrotlidec -lbrotlicommon -lidn2 -liconv -lunistring ^
-lBcrypt -lntdll -lUserenv -lpthread -Wl,--out-implib=core.dll.a,--output-def=core.def